package wangjg.security.http;

import java.util.Collection;
import java.util.Map;
import java.util.Set;

import javax.servlet.http.HttpServletRequest;

public class HttpRequestParamMap implements Map<String, String[]> {
	private HttpServletRequest request;
	
	public HttpRequestParamMap(HttpServletRequest request) {
		this.request = request;
	}

	public void clear() {
		
	}

	public boolean containsKey(Object key) {
		return request.getParameterMap().containsKey(key);
	}

	public boolean containsValue(Object value) {
		return request.getParameterMap().containsValue(value);
	}

	public Set<java.util.Map.Entry<String, String[]>> entrySet() {
		return request.getParameterMap().entrySet();
	}

	public String[] get(Object key) {
		return (String[]) request.getParameterValues((String) key);
	}

	public boolean isEmpty() {
		return request.getParameterMap().isEmpty();
	}

	public Set<String> keySet() {
		return request.getParameterMap().keySet();
	}
	
	public String[] put(String key, String[] value) {
		return null;
	}

	public void putAll(Map<? extends String, ? extends String[]> m) {
		
	}

	public String[] remove(Object key) {
		return null;
	}

	public int size() {
		return request.getParameterMap().size();
	}

	public Collection<String[]> values() {
		return request.getParameterMap().values();
	}

}
